<script type="text/javascript" charset="utf-8" src="__ROOT__assets/libs/ueditor/ueditor.config.js"></script>
<style type="text/css">
    div{
        width:100%;
    }
</style>

<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Storename')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-storename" class="form-control" disabled name="row[storename]" type="text" value="{$row.storename|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Range')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-range" class="form-control" disabled name="row[storeinfo][range]" value="{$row.storeinfo.range|htmlentities}" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Storeimages')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-storeimages" disabled class="form-control" size="50" name="row[storeimages]" type="text" value="{$row.storeimages|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-storeimages" class="btn btn-danger plupload" data-input-id="c-storeimages" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-storeimages"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-storeimages" class="btn btn-primary fachoose" data-input-id="c-storeimages" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-storeimages"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-storeimages"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Identimages')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-identimages" disabled class="form-control" size="50" name="row[identimages]" type="text" value="{$row.identimages|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-identimages" class="btn btn-danger plupload" data-input-id="c-identimages" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-identimages"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-identimages" class="btn btn-primary fachoose" data-input-id="c-identimages" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-identimages"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-identimages"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Comment')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-comment" class="form-control" name="row[comment]" type="number" value="{$row.comment|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Favorite')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-favorite" class="form-control" name="row[favorite]" type="number" value="{$row.favorite|htmlentities}">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tel" class="form-control"  data-rule="required mobile"  name="row[storeinfo][tel]" type="text" value="{$row.storeinfo.tel|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Storeinfo.images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-storeinfo-images" data-rule="required" class="form-control" size="50" name="row[storeinfo][images]"  type="text" value="{$row.storeinfo.images}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-storeinfo-images" class="btn btn-danger plupload" data-input-id="c-storeinfo-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-storeinfo-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-storeinfo-images" class="btn btn-primary fachoose" data-input-id="c-storeinfo-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-storeinfo-images"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-storeinfo-images"></ul>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('门店介绍')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="editor" class="editor" name="row[storeinfo][others]" cols="30" rows="10">{$row.storeinfo.others}</textarea>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
